# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
pkgname=scdoc
pkgver=1.11.0
pkgrel=0
pkgdesc="simple man page generator written for POSIX systems written in C99"
url="https://git.sr.ht/~sircmpwn/scdoc"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	"
builddir="$srcdir/$pkgname-$pkgver"

check() {
	cd "$builddir"
	make check
}

build() {
	cd "$builddir"
	make PREFIX="/usr"
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" PREFIX="/usr" install
}

sha512sums="4c8248a12e69e53cc2182af5375912f7af64f3807163dbe3c52e85d817b1bfa7e461d02a627c73d93bdaa96e49668ff894d37817ceb70ee3186da9e3f8372d49  scdoc-1.11.0.tar.gz"
